package model;

/**
 * Created with IntelliJ IDEA
 * Description：实体类，代表一个用户
 * User：chenshu
 * Date：2023-12-07
 * Time：00:25
 */
public class User {
    private int userId;
    private String username;
    private String password;
    private String gitUrl;
    private int blogCount = 0;
    private int followerCount = 0;
    private int followingCount = 0;
    private int collectionCount = 0;

    public int getFollowerCount() {
        return followerCount;
    }

    public void setFollowerCount(int followerCount) {
        this.followerCount = followerCount;
    }

    public int getFollowingCount() {
        return followingCount;
    }

    public void setFollowingCount(int followingCount) {
        this.followingCount = followingCount;
    }

    public int getCollectionCount() {
        return collectionCount;
    }

    public void setCollectionCount(int collectionCount) {
        this.collectionCount = collectionCount;
    }

    private int isYourBlog;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGitUrl() {
        return gitUrl;
    }

    public void setGitUrl(String gitUrl) {
        this.gitUrl = gitUrl;
    }

    public int getBlogCount() {
        return blogCount;
    }

    public void setBlogCount(int blogCount) {
        this.blogCount = blogCount;
    }

    public int getIsYourBlog() {
        return isYourBlog;
    }

    public void setIsYourBlog(int judge) {
        isYourBlog = judge;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", gitUrl='" + gitUrl + '\'' +
                ", blogCount=" + blogCount +
                ", isYourBlog=" + isYourBlog +
                '}';
    }
}
